import type { PaginationResponse, SimpleResponse } from "./api";

export interface Menu {
  id: number;
  name: string;
  path: string;
  order: string;
  acl: string;
  role?: {
    id: number;
    name: string;
    description?: string;
  } | null;
}

export interface CreateMenuRequest {
  name: string;
  path: string;
  order: string; // 后端为字符串数字
  acl: string;
}

export interface UpdateMenuRequest {
  name?: string;
  path?: string;
  order?: string; // 后端为字符串数字
  acl?: string;
}

export type MenuListResponse = PaginationResponse<Menu>;
export type MenuResponse = SimpleResponse<Menu>;
